package cn.stylefeng.guns.modular.transport.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * 回传单表
 */
@Data
@TableName("transport_receipt")
public class TransportReceipt implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 调度单号
     */
    @TableField("dispatch_number")
    private String dispatchNumber;

    /**
     * 车辆id
     */
    @TableField("car_id")
    private Long carId;

    /**
     * 车牌号
     */
    @TableField("carnumber")
    private String carnumber;

    /**
     * 装货单位
     */
    @TableField("set_unit")
    private String setUnit;

    /**
     * 装货地点
     */
    @TableField("set_location")
    private String setLocation;

    /**
     * 联系人
     */
    @TableField("get_people")
    private String getPeople;

    /**
     * 联系电话
     */
    @TableField("get_tel")
    private String getTel;

    /**
     * 卸货单位id
     */
    @TableField("get_unitid")
    private Long getUnitid;

    /**
     * 卸货单位
     */
    @TableField("get_unit")
    private String getUnit;

    /**
     * 卸货地点
     */
    @TableField("get_location")
    private String getLocation;

    /**
     * 卸货地点id
     */
    @TableField("get_locationid")
    private Long getLocationid;

    /**
     * 签字文件id
     */
    @TableField("sd_file_id")
    private String sdfileId;

    /**
     * 送达时间
     */
    @TableField("sd_time")
    private String sdtime;

    /**
     * 送达人员
     */
    @TableField("sdusername")
    private String sdusername;

    /**
     * 送达状态
     */
    @TableField("sdtstate")
    private String sdtstate;

    /**
     * 进入围栏时间
     */
    @TableField("enter_fence_time")
    private String enterFenceTime;

    /**
     * 离开围栏时间
     */
    @TableField("leave_fence_time")
    private String leaveFenceTime;

    /**
     * 回单文件id
     */
    @TableField("file_id")
    private String fileId;

    /**
     * 回传时间
     */
    @TableField("time")
    private String time;

    /**
     * 回传人员
     */
    @TableField("username")
    private String username;

    /**
     * GPS
     */
    @TableField("GPS")
    private String gps;

    /**
     * 状态
     */
    @TableField("tstate")
    private String tstate;

    /**
     * 数量
     */
    @TableField("num")
    private String num;

    /**
     * 体积
     */
    @TableField("volume")
    private String volume;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 创建用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 修改用户
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;
    
    /**
     * 装货单位Id
     */
    @TableField("set_unitid")
    private Long setUnitId;

    /**
     * 装货地点id
     */
    @TableField("set_locationid")
    private Long setLocationId;

    /**
     * 备货口
     */
    @TableField("stock_port")
    private String stockPort;

    /**
     * 配送顺序
     */
    @TableField("deliverys")
    private String deliverys;

    /**
     * 新零帮收货客户id
     */
    @TableField("xlb_client_id")
    private String xlbClientId;

    /**
     * 零售发货单打印次数
     */
    @TableField("print_num_hx")
    private String printNumHx;

    @Override
    public String toString() {
        return "TransportReceipt{" +
                "id=" + id +
                ", dispatchNumber='" + dispatchNumber + '\'' +
                ", carnumber='" + carnumber + '\'' +
                ", setUnit='" + setUnit + '\'' +
                ", setLocation='" + setLocation + '\'' +
                ", getPeople='" + getPeople + '\'' +
                ", getTel='" + getTel + '\'' +
                ", getUnitid=" + getUnitid +
                ", getUnit='" + getUnit + '\'' +
                ", getLocation='" + getLocation + '\'' +
                ", getLocationid=" + getLocationid +
                ", fileId='" + fileId + '\'' +
                ", time='" + time + '\'' +
                ", username='" + username + '\'' +
                ", gps='" + gps + '\'' +
                ", tstate='" + tstate + '\'' +
                ", num='" + num + '\'' +
                ", volume='" + volume + '\'' +
                ", version=" + version +
                ", deptId=" + deptId +
                ", deliverId=" + deliverId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", createUser=" + createUser +
                ", updateUser=" + updateUser +
                '}';
    }
}
